home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 February
/
CHIPCD_02_2002.iso
/
Internet
/
Macromedia ColdFusion Server 5
/
coldfusion-50-win-us.exe
/
data1.cab
/
Examples
/
CFDOCS
/
snippets
/
decimalformat.cfm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2001-06-13
|
459 b
|
24 lines
<!--- This code shows the use of DecimalFormat --->
<HTML>
<HEAD>
<TITLE>
DecimalFormat Example
</TITLE>
</HEAD>
<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY bgcolor="#FFFFD5">
<H3>DecimalFormat Function</H3>
<P>Returns a number to two decimal places.
<P>
<CFLOOP FROM=1 TO=20 INDEX="counter">
<CFOUTPUT>
#counter# * Square Root of 2: #DecimalFormat(Evaluate(counter * sqr(2)))#
</CFOUTPUT>
<BR>
</CFLOOP>
</BODY>
</HTML>